
#include "ShellSecMaterialConstant.h"

#include <cmath>
#include <cstddef>

#include "DataStructure/Common/Out.h"
#include "DataStructure/Common/Real.h"

using SG::Algebra::Matrix;
using SG::DataStructure::Common::Real;

void SG::DataStructure::FEM::calcMatCoordTransMatrix (const Real c, const Real s, Matrix& _OUT T1, Matrix& _OUT T2)
{
    T1 (0, 0) = c * c;
    T1 (0, 1) = s * s;
    T1 (0, 2) = -2.0 * c * s;
    T1 (1, 0) = s * s;
    T1 (1, 1) = c * c;
    T1 (1, 2) = 2.0 * c * s;
    T1 (2, 0) = s * c;
    T1 (2, 1) = -s * c;
    T1 (2, 2) = c * c - s * s;

    T2 (0, 0) = c;
    T2 (0, 1) = -s;
    T2 (1, 0) = s;
    T2 (1, 1) = c;
}
